<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="m" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link href="../css/style-admin-edit-image.css" rel="stylesheet" type="text/css" />
	<link href="../css/style-admin-all.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<jsp:include page="header.jsp" />
	<div class="barra1">
		<jsp:include page="top-bar.jsp" />
	</div>
	<div class="header">
		<div class="">
			<form method="POST" enctype="multipart/form-data" action="../admin/edit-image.ja?cod=${prod.id}">
				<table class="table-margin" cellpadding="5">
					<tr>
						<c:forEach var="img" items="${prod.images}">
							<td><img src="http://localhost:8080/ShoppingCart.Com_V6/ProductImage/${img.description}" width="180" height="180"></td>	
						</c:forEach>
					</tr>
					<tr>
						<td colspan="3" class="img-style">Image(s):<br>
							<input type="file" name="photo1" size="66" /><br>
							<input type="file" name="photo2" size="66" /><br>
							<input type="file" name="photo3" size="66" /><br>
						</td>						
					</tr>
					<tr height="10"></tr>
					<tr>
						<td colspan="2"></td>
						<td>
							<input type="submit" value="Send" class="button-style" />
							<input id="btnVoltar" type="button" value="Back" class="button-style" onclick="history.back(1)" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>